package code.structure.module.friends.data
{
	/**
	 * 好友数据
	 * @author CYoung
	 * 2014-7-15下午9:58:10
	 */
	public class FriendData
	{
		/**
		 *用户ID 
		 */		
		public var id:String;
		/**
		 * 姓名 
		 */		
		public var name:String;
		/**
		 * 名
		 */		
		public var first_name:String;
		/**
		 *性别  male|female 男|女
		 */		
		public var gender:String;
		/**
		 *是否安装 
		 */		
		public var installed:Boolean;
		/**
		 *头像地址 
		 */		
		public var picture:String;
		
		/**
		 *用户等级 
		 */		
		public var level:int;
		/**
		 *访问能量 
		 */		
		public var energy:int;
		
		public function FriendData(data:Object)
		{
			id = data.id;
			name = data.name;
			first_name = data.first_name;
			gender = data.gender;
			if(data.installed) installed = Boolean(data.installed);
			picture = data.picture.data.url;
		}
		/**
		 * 解析扩展数据
		 */		
		public function analysisExpandData(data:Object):void
		{
			level = data.level;
		}
	}
}